{% extends "main/index.html" %}

{% block title %}
    <title>:: Sirogi - Write Letter :: </title>
{% endblock %}
{% block content %}
    <div class="titulo_contenedor">
	Write Letter
    </div>
    <div class="cuerpo_contenedor">
	{% if ret %}
	    <center>
	      Sent Letter
	      <br/><br/>
    	      <a href="/letter/" style="font-size:10pt;">Write other letter</a>
	    </center>
	{% else %}
	    <br/>
	    <form method="post" action="save/" >
		Recipient: 
		<select name="recipient">
		    {% for user in results_user %}
			<option value="{{user.NIC}}">{{user.username}}</option>
		    {% endfor %}
		</select>   
		<br/><br/>     
		Subject: <input type="text" name="subject" style="width:500px;"> <br/><br/>
		Body: <br/>
		<center>
		     <TEXTAREA name="body" rows="20" cols="80"></TEXTAREA>
		     <br/>
		</center>
		<br/><br/>
		<div style="text-aling:right; width:100%">
		    <input name="cmdAceptar" value="Enviar" type="submit" class="boton_1">
		</div>
	    </form>
	{% endif %}
    </div>
    <div class="fondo_contenedor">
    </div>
{% endblock %}